// 封装搜索相关的接口
import axios from '@/utils/request'
/**
 * 获取联想建议
 * @param {*} q 搜索关键词
 * @returns
 */
export const getSuggest = (q) =>
  axios({
    url: '/v1_0/suggestion',
    params: {
      q
    }
  })

export const getSearch = (page, q) =>
  axios({
    url: '/v1_0/search',
    params: {
      page,
      q,
      per_page: 10
    }
  })
